void draw_oil(int x,int y){
  // Henkel
  GLCD.SetDot(x,y,BLACK);
  GLCD.SetDot(x,y+1,BLACK);
  GLCD.SetDot(x,y+2,BLACK);
  GLCD.SetDot(x+1,y+3,BLACK);
  GLCD.SetDot(x+2,y+4,BLACK);
  GLCD.SetDot(x+1,y,BLACK);
  GLCD.SetDot(x+2,y+1,BLACK);
  // Deckel
  GLCD.SetDot(x+5,y,BLACK);
  GLCD.SetDot(x+6,y,BLACK);
  GLCD.SetDot(x+7,y,BLACK);
  GLCD.SetDot(x+6,y+1,BLACK);
  //Strich oben
  GLCD.DrawLine(x+3,y+2,x+9,y+2,BLACK);
  //Strich links
  GLCD.DrawLine(x+3,y+3,x+3,y+6,BLACK);
  //Strich unten
  GLCD.DrawLine(x+4,y+7,x+9,y+7,BLACK);
  //Auslauf
  GLCD.SetDot(x+10,y+3,BLACK);
  GLCD.SetDot(x+11,y+2,BLACK);
  GLCD.SetDot(x+12,y+2,BLACK);
  GLCD.SetDot(x+13,y+1,BLACK);
  GLCD.SetDot(x+14,y+1,BLACK);
  GLCD.SetDot(x+15,y+1,BLACK);
  GLCD.SetDot(x+16,y+1,BLACK);
  GLCD.SetDot(x+14,y+2,BLACK);
  GLCD.SetDot(x+10,y+6,BLACK);
  GLCD.SetDot(x+11,y+5,BLACK);
  GLCD.SetDot(x+12,y+4,BLACK);
  GLCD.SetDot(x+13,y+3,BLACK);
  //Tropfen
  GLCD.SetDot(x+16,y+3,BLACK);
  GLCD.SetDot(x+15,y+4,BLACK);
  GLCD.SetDot(x+16,y+4,BLACK);
  GLCD.SetDot(x+17,y+4,BLACK);
  GLCD.SetDot(x+14,y+5,BLACK);
  GLCD.SetDot(x+15,y+5,BLACK);
  GLCD.SetDot(x+16,y+5,BLACK);
  GLCD.SetDot(x+18,y+5,BLACK);
  GLCD.SetDot(x+14,y+6,BLACK);
  GLCD.SetDot(x+15,y+6,BLACK);
  GLCD.SetDot(x+16,y+6,BLACK);
  GLCD.SetDot(x+17,y+6,BLACK);
  GLCD.SetDot(x+18,y+6,BLACK);
  GLCD.SetDot(x+15,y+7,BLACK);
  GLCD.SetDot(x+16,y+7,BLACK);
  GLCD.SetDot(x+17,y+7,BLACK);
};

void draw_air(int x,int y){
  GLCD.DrawLine(x+2,y,x+2,y+7,BLACK);

  GLCD.SetDot(x+2,y+1,BLACK);
  GLCD.SetDot(x+3,y+1,BLACK);
  GLCD.SetDot(x+4,y+1,BLACK);

  GLCD.SetDot(x+2,y+3,BLACK);
  GLCD.SetDot(x+3,y+3,BLACK);
  GLCD.SetDot(x+4,y+3,BLACK);

  GLCD.SetDot(x,y+6,BLACK);
  GLCD.SetDot(x+4,y+6,BLACK);
  GLCD.FillRect(x+1,y+5,2,2,BLACK);
};

void draw_fuel(int x,int y){
  GLCD.FillRect(x+1,y,3,6,BLACK);
  GLCD.FillRect(x+2,y+1,1,1,WHITE);
  GLCD.SetDot(x,y+6,BLACK);
  GLCD.SetDot(x+5,y+6,BLACK);
  GLCD.SetDot(x+5,y+4,BLACK);
  GLCD.SetDot(x+6,y+3,BLACK);
  GLCD.SetDot(x+6,y+2,BLACK);
  GLCD.SetDot(x+6,y+1,BLACK);
  GLCD.SetDot(x+7,y,BLACK);
};

void draw_clock(int x,int y){
  GLCD.DrawCircle(x, y, 3, BLACK);
  GLCD.SetDot(x,y,BLACK);
  GLCD.SetDot(x,y-1,BLACK);
  GLCD.SetDot(x,y-2,BLACK);
  GLCD.SetDot(x+1,y,BLACK);
};

void draw_sun(int x,int y,boolean white){      
  GLCD.DrawCircle(x,y,3,BLACK);          // kreis
  GLCD.DrawLine(x,  y-8,x,  y-5,BLACK);  // oben
  GLCD.DrawLine(x,  y+5,x,  y+8,BLACK);  // unten
  GLCD.DrawLine(x+5,  y,x+8,y,  BLACK);  // rechts
  GLCD.DrawLine(x-5,  y,x-8,y,  BLACK);  // links
  GLCD.DrawLine(x-4,y-4,x-6,y-6,BLACK);  // oben links
  GLCD.DrawLine(x+4,y-4,x+6,y-6,BLACK);  // oben rechts
  GLCD.DrawLine(x+4,y+4,x+6,y+6,BLACK);  // unten rechts
  GLCD.DrawLine(x-4,y+4,x-6,y+6,BLACK);  // unten links
  if(!white){
    GLCD.FillRect(x-1,y-2,2,4,BLACK); // aufrecht
    GLCD.FillRect(x-2,y-1,4,2,BLACK); // liegend
  };
};

void disp_init (){
  int temp=20;
  GLCD.Init(NON_INVERTED);   // initialise the library, non inverted writes pixels onto a clear screen
  GLCD.ClearScreen();  
  GLCD.SelectFont(System5x7);

//  GLCD.GotoXY(20,25);
//  GLCD.SelectFont(Arial_14); // switch to fixed width system font 
//  GLCD.Puts("J");
//  GLCD.SelectFont(System5x7); // switch to fixed width system font
//  delay(4*temp);
//  GLCD.FillRect(20,25,8,12,WHITE);

  delay(1.5*temp);
  GLCD.GotoXY(22,27);
  GLCD.Puts("J");
  delay(3*temp);

//  GLCD.GotoXY(58,25);
//  GLCD.SelectFont(Arial_14); // switch to fixed width system font 
//  GLCD.Puts("K");
//  GLCD.SelectFont(System5x7); // switch to fixed width system font
//  delay(4*temp);
//  GLCD.FillRect(58,25,8,12,WHITE);
  delay(1.5*temp);
  GLCD.GotoXY(60,27);
  GLCD.Puts("K");
  delay(3*temp);

//  GLCD.GotoXY(96,25);
//  GLCD.SelectFont(Arial_14); // switch to fixed width system font 
//  GLCD.Puts("W");
//  GLCD.SelectFont(System5x7); // switch to fixed width system font
//  delay(4*temp);
//  GLCD.FillRect(96,25,12,14,WHITE);
  delay(1.5*temp);
  GLCD.GotoXY(98,27);
  GLCD.Puts("W");


  delay(8*temp);

  GLCD.ClearScreen();
  Serial.println("Disp init done");
};

int get_zeile(int zeilen){
  int y;
  switch (zeilen) {
  case 2:  
    y=25; 
    break;
  case 3:  
    y=17; 
    break;
  case 4:  
    y=17; 
    break;
  case 5:  
    y=9; 
    break;
  case 6:  
    y=9; 
    break;
  };
  y+=8*zeile;
  zeile++;
  return y;
};


void disp_waiting(int position){
  switch (position%4){
  case 0:  
    GLCD.Puts(" |");   
    break;
  case 1:  
    GLCD.Puts(" /");   
    break;
  case 2:  
    GLCD.Puts(" -");   
    break;
  case 3:  
    GLCD.Puts(" \\");  
    break;
  };
};

